package com.woniuxy.mapper;

import com.woniuxy.entity.dto.stationPile.StationInfoDTO;
import com.woniuxy.entity.po.dic.Dictionary;
import com.woniuxy.entity.po.stationPile.Station;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
* @author Quan
* @description 针对表【station(充电站表)】的数据库操作Mapper
* @createDate 2025-03-28 11:25:38
* @Entity com.woniuxy.entity.po.stationPile.Station
*/
public interface StationMapper {
    List<Station> queryAll();

    List<Station> queryInfo(StationInfoDTO stationInfoDTO);

    void delStationAndPileAndImg(Long id);

    void batchDelStationAndPileAndImg(List<Long> ids);

    List<Station> queryAllForMap();

    List<Dictionary> queryStationTypeList();

    Station queryStationDetail(Long id);

    List<Station> findByNextTimeBefore(@Param("now") LocalDateTime now);

    void batchUpdate(List<Station> stations);

    void addStation(Station station);

    List<Station> queryStationsByIds(List<Long> ids);

    void updateById(Station station);
}




